package com.ruoyi.vplat.websocket.listener.rs;

import javax.websocket.Session;

import org.springframework.stereotype.Component;

import com.ruoyi.vplat.websocket.listener.AbstractWsOpenListener;

import lombok.extern.slf4j.Slf4j;

@Component
@Slf4j
public class RSWsOpenListener extends AbstractWsOpenListener {
	@Override
	public void onOpen(String username, Session session) throws Exception {
		String gateway = username.toString();
		String protocol = "3";
		username = saveOrUpdateGateway(username, session, "录像服务", protocol);
		

	}
	

}
